package com.maiji.cloud.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.maiji.cloud.entities.login.NutrientContentEntity;

@Mapper
public interface NutrientContentMapper extends BaseMapper<NutrientContentEntity>{
	/**
	 * 根据名字全匹配查询
	 * @param element
	 * @return
	 */
	NutrientContentEntity selectOneByElementName(@Param("foodMaterialId")String foodMaterialId,@Param("element")String element);
	/**
	 * 根据食材id获取
	 * @param foodMaterialId
	 * @return
	 */
	List<NutrientContentEntity> selectListByFoodMaterialId(@Param("foodMaterialId")String foodMaterialId);

}
